package Source;

/**
 * Created with IntelliJ IDEA.
 * Source.UserController: Инесса
 * Date: 20.10.13
 * Time: 1:53
 * To change this template use File | Settings | File Templates.
 */
public class QuestionsFactory {

    public static QuestionsSource getSource(int useFile) {
        if (useFile==1) {
            return new QuestionsFromFile();
        } else {
            return new StaticQuestions();
        }
  }
}
